<template>
  <el-tabs type="border-card">
    <el-tab-pane label="移交接收设置">
      <transfer-receive :treeLoading="treeLoading" :treeData="treeData"></transfer-receive>
    </el-tab-pane>
    <el-tab-pane label="存储路径管理">
      <save-path :treeLoading="treeLoading" :treeData="treeData"></save-path>
    </el-tab-pane>
  </el-tabs>
</template>

<script>
import TransferReceive from '../settingComponents/transferReceiveSet/transferReceive'
import SavePath from '../settingComponents/transferReceiveSet/savePath'
import { getSelfCategoryTree } from '../../../../api/category/category'
export default {
  name: 'TransferReceiveSet',
  components: { SavePath, TransferReceive },
  // 移交接收设置
  data () {
    return {
      treeLoading: true,
      treeData: []
    }
  },
  mounted () {
    this.getTreeList()
  },
  methods: {
    getTreeList () {
      // 左侧获取门类
      getSelfCategoryTree('daModel', this.$route.query.isNotAjJnNode).then(res => {
        this.treeData = res.data.data
        this.treeLoading = false
      }).catch(() => {
        this.treeLoading = false
      })
    }
  }
}
</script>

<style lang="scss" scoped>
  ::v-deep .el-tabs__content{
    min-height: calc(100vh - 125px);
  }
</style>
